<? if($registration_result): ?>
    <p>Регистрация прошла успешно!</p>
    
<? elseif(!$registration_result): ?>
    
    <? if(is_array($registration_errors)): ?>
        <p>Регистрация не удалась из-за:</p>
    
        <ul>
            <? foreach($registration_errors as $error): ?>
                <li><?= $error ?></li>    
            <? endforeach; ?>
        </ul>
        
    <? endif; ?>
    
    
    
<? endif; ?>

<form name="registration_form" id="registration_form" method="post">
    <div id="div_registration_form">

        <div class="element_form">
            <div class="label">Email</div>
            <div class="input"><input type="text" name="registration_form_email" id="registration_form_email" /></div>
        </div>

        <div class="element_form">
            <div class="button"><input type="submit" name="registration_form_submit" id="registration_form_submit" /></div>
        </div>

    </div>
</form>


